<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    body, p, h1, h2, h3, h4, h5, h6 {
      margin: 0;
    }
    body {
      background: #ccc;
    }
    .box {
      background: #fff;
      padding: 20px;
      box-sizing: border-box;
      width: 480px;
      border: 1px solid #aaa;
    }
    
    .hot-title {
      font-weight: normal;
      color: #ccc;
      font-size: 14px;
    }
    .all-cities span {
      display: inline-block;
      width: 10%;
      margin-right: 20px;
      font-size: 14px;
      color: #333;
    }
    .tabs {
      border-bottom: 1px solid #ddd;
      text-align: center;
      margin-top: 20px;
    }
    .tabs .tab_item {
      width: 80px;
      height: 40px;
      line-height: 40px;
      text-align: center;
      font-size: 14px;
      color: #333;
      display: inline-block;
    }
    .tabs .tab_item.active{
      border: solid 1px #ddd;
      border-bottom: none;
      background: #fff;
      position: relative;
      bottom: -1px;
    }
 
    .tab .letter-title {
      display: table-cell;
      width: 30px;
      color: red;
      font-size: 14px;
      font-weight: normal;
    }
    .tab .all-cities {
      display: table-cell;
      padding: 10px;
    }
    
    .tab .all-cities span {
      /* white-space: nowrap; */
      width: auto;
    }
  </style>
</head>
<body>
  <div class="box"></div>
  <script src="../libs/jquery-1.12.4.js"></script>
  <script src="./area.js"></script>
  <script src="./jquery.area.js"></script>
  <script>
    $('.box').area()
  
  </script>
</body>
</html>